<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/scroll.js"></script>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
$(document).ready(function(){
		$("#scroller").simplyScroll({
			autoMode: 'loop'
		});
	});
/*]]>*/
</script>
<?php
$slidecat1 = get_option('swt_scroll_category');
$slidecat = get_cat_ID($slidecat1);
?>
<div id="ndqyscroll"><div id="latest"><a href="<?php echo get_category_link($slidecat); ?>"><?php echo $slidecat1;?></a></div>
<ul id="scroller">
<?php
$slidecount = get_option('swt_scroll_count');
$my_query = new WP_Query('cat= '. $slidecat .'&showposts='.$slidecount.'');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div>